<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html>	
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title><bean:message key="AltaAlumno.titulo.menor" /></title>
	</head>
	
	<body>
		<html:errors/>
		<html:form action="/altaAlumno" >
			<table width="100%" border="0">
			  	<caption>
			  		<font color="#990000"><strong><bean:message key="AltaAlumno.info" /></strong></font> 
			  	</caption>
			  	<tr> 
			    	<td colspan="3">&nbsp;</td>
			  	</tr>
			  	<tr> 
			    	<td colspan="3"><bean:message key="AltaAlumno.info.personal" /></td>
			  	</tr>
			  	<tr> 
			    	<td width="38%">
			    		<bean:message key="AltaAlumno.nombre" />
			    	</td>
			   		<td colspan="2"> 
			   			<html:text property="nombre" maxlength="255" size="30" />
			   		</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.apellido" />
			    	</td>
			    	<td colspan="2">
			    		<html:text property="apellido" maxlength="255" size="30" />
			    	</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.dni" />
			    	</td>
			    	<td colspan="2">
			    		<html:text property="dni" maxlength="30" size="20" />
			    	</td>
			  	</tr>
			 	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.sexo" />
			    	</td>
			   		<td colspan="2"> 
			   			<html:radio property="sexo" value="Masculino">
			   				<bean:message key="AltaAlumno.sexo.masculino" />
			   			</html:radio>	
			   			<html:radio property="sexo" value="Femenino">		   			 			     		
				     		<bean:message key="AltaAlumno.sexo.femenino" />	
			     		</html:radio>		      		
			      	</td>
			  	</tr>
			  	<tr> 
			   		<td>
			   			<bean:message key="AltaAlumno.fechaNac" />
			   		</td>
			    	<td colspan="2">			    		
			      		<html:text property="fechaNac" maxlength="10" size="15" />
			      	</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.direccion" /> 
			    	</td>
			    	<td colspan="2">
			    		<html:text property="direccion" maxlength="255" size="50" />
			    	</td>
			  	</tr>
			  	<tr> 
			    	<td>
				    	<bean:message key="AltaAlumno.telefono" />
			    	</td>
			    	<td colspan="2">
			    		<html:text property="telefono" maxlength="255" size="20" />
			    	</td>
			  	</tr>			  	
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.apellidoNombreMadre" />
			    	</td>
			    	<td colspan="2"> 
			    		<html:text property="apellidoNombreMadre" maxlength="255" size="50" />
			    	</td>
			  	</tr>
			  	<tr> 
			   		<td>
			   			<bean:message key="AltaAlumno.apellidoNombrePadre" />
			   		</td>
			   		<td colspan="2"> 
			   			<html:text property="apellidoNombrePadre" maxlength="255" size="50" />
			   		</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.religion" />
			    	</td>
			    	<td colspan="2"> 
			    		<html:text property="religion" maxlength="100" size="30" />
			    	</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.escuela" />
			    	</td>
			    	<td colspan="2"> 
			    		<html:select property="idEscuela"> 
				    		<html:option value=""></html:option> 
				      	 	<html:optionsCollection
												name="alumnoForm"
												property="escuelas"
												value="idEscuela"
												label="nombre" /> 
						 </html:select> 
			      	</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.grado" />
			    	</td>
			    	<td colspan="2"> 
			    		<html:select property="grado"> 
				    		<html:option value=""></html:option> 
				      	 	<html:optionsCollection
												name="alumnoForm"
												property="grados"
												value="numero"
												label="numero" /> 
						 </html:select>			    		
			      	</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.actividadExtra" />
			    	</td>
			    	<td colspan="2"> 
			    		<html:text property="actividadExtra" maxlength="255" size="50" />
			    	</td>
			  	</tr>
			  	<tr> 
			    	<td colspan="3">&nbsp;</td>
			  	</tr>
			  	<tr> 
			    	<td>			    		
			      		&nbsp;
			      	</td>
			    	<td colspan="2"> 
			    		<html:checkbox name="alumnoForm" property="asisteCopaLeche" value="1"><bean:message key="AltaAlumno.asisteCopaLeche" /></html:checkbox>			      		
			      	</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		&nbsp;
			      	</td>
			    	<td colspan="2">
			    		<html:checkbox name="alumnoForm" property="asistePrimeroMiPrimaria" value="1"><bean:message key="AltaAlumno.asistePrimeroPrimaria" /></html:checkbox>			      		 			    		
			      	</td>
			  	</tr>
			  	<tr> 
			    	<td colspan="3">&nbsp;</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.problemas" />
			    	</td>
			    	<td colspan="2"> 
			    		<html:textarea property="problemas" cols="50" rows="2" />
			    	</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.observaciones" />
			    	</td>
			    	<td colspan="2"> 
			    		<html:textarea property="observaciones" cols="50" rows="2" />
			    	</td>
			  	</tr>
			  	<tr> 
			    	<td colspan="3">&nbsp;</td>
			  	</tr>
			  	<tr align="center"> 
			    	<td colspan="3">
			    		<bean:message key="AltaAlumno.adjuntarFoto" />
				  		&nbsp;			      		 
			      		<html:file property="foto" />
			      	</td>
			  	</tr>
			  	<tr> 
			    	<td colspan="3">&nbsp;</td>
			  	</tr>
			  	<tr> 
			    	<td>
			    		<bean:message key="AltaAlumno.tutor" />
			    	</td>
			    	<td colspan="2"> 
			    		<html:select property="idTutor"> 
				    		<html:option value=""></html:option> 
				      	 	<html:optionsCollection
												name="alumnoForm"
												property="tutores"
												value="idPersona"
												label="apellidoNombre" /> 
						 </html:select>			    		
			      	</td>
			  	</tr>			  	
			  	<tr> 
			    	<td colspan="3">&nbsp;</td>
			  	</tr>
			  	<tr> 
			    	<td align="center"> 
			    		<html:submit><bean:message key="Botones.guardar" /></html:submit> 
			    	</td>
			    	<td width="15%" align="center"> 
			    		<html:cancel><bean:message key="Botones.cancelar" /></html:cancel> 
			    	</td>
			    	<td width="47%" align="center"> 
			    		<html:reset><bean:message key="Botones.reset" /></html:reset>
			    	</td>
			  	</tr>
			</table>
			<%-- set the parameter for the dispatch action --%>
			<html:hidden property="action" value="altaAlumno" />
		</html:form>
	</body>
</html:html>